<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>animate</title>
    <style>
        #box{
            width:200px;
            height: 100px;
            background: #c00;
            color: #fff;
            border: 1px solid #039;
            position: absolute;
            left: 100px;
            top: 300px;
        }
    </style>
</head>
<body>
        <button>动画</button>
        <button>往左走</button>
        <button>往右走</button>
        <button>停</button>
        <div id="box">动画</div>
   <script src="js/jquery-3.3.1.min.js"></script> 
   <script>
  $(function(){
      $("button:first").click(function(){
      $('#box').animate({},3000).animate({
          width:"700px",
          height:"300px",
          fontSize:"100px",
          lineHeight:"200px"},3000).animate({width:"300px",
          borderWidth:"20px",
          fontSize:"40px",
          padding:"30px"},2000);
    })
    $("button:eq(1)").click(function(){$("#box").animate({left:"-=100px"},2000)
    })
    $("button:eq(2)").click(function(){$("#box").animate({left:"+=100px"},2000)
    })
    $("button:eq(3)").click(function(){$("#box").stop()
    })
  })
   </script>
</body>
</html>
